[quartz] Set GdkQuartzView wantsLayer.
authorJohn Ralls <jralls@ceridwen.us>
Thu, 8 Dec 2022 18:04:56 +0000 (10:04 -0800)
committerJohn Ralls <jralls@ceridwen.us>
Thu, 8 Dec 2022 18:04:56 +0000 (10:04 -0800)
Apparently wantsUpdateLayer by itself isn't sufficient.
Also #ifdef wantsUpdateLayer for macOS X 10.8 and later; earlier
versions don't provide it.

Fixes #5393

gdk/quartz/GdkQuartzView.c

index af28e37beaf64a18967e4b4c5afc1107fa4d4e2d..16b5989fc70e61e813cbb562cec0a0ebccb3e09a 100644 (file)
   [super viewWillDraw];
 }
 
+#if MAC_OS_X_VERSION_MIN_REQUIRED >= 10900
 -(BOOL)wantsUpdateLayer
 {
      return YES;
 }
+#endif
+
+-(BOOL)wantsLayer
+{
+     return YES;
+}
 
 static void
 nsrect_from_cairo_rect (NSRect *nsrect, cairo_rectangle_int_t *rect)